package com.hy.pojo.vaccine;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 疫苗预约表：记录用户的疫苗预约信息，包括预约时间、接种记录、支付信息等
 * @TableName vaccination_appointment
 */
@TableName(value ="vaccination_appointment")
@Data
public class VaccinationAppointment implements Serializable {
    /**
     * 预约ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 预约编号
     */
    @TableField(value = "appointment_no")
    private String appointmentNo;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 疫苗ID
     */
    @TableField(value = "vaccine_id")
    private Long vaccineId;


    /**
     * 预约日期
     */
    @TableField(value = "appointment_date")
//    @JsonFormat(pattern = "yyyy-MM-dd")
    private String appointmentDate;

    /**
     * 预约时间
     */
    @TableField(value = "appointment_time")
//    @JsonFormat(pattern = "HH:mm:ss")
    private String appointmentTime;

    /**
     * 预约状态：0-待确认 1-已确认 2-已完成 3-已取消 4-已过期
     */
    @TableField(value = "status")
    private Integer status;

    @TableField(value = "hospital_id")
    private Long hospitalId;


    /**
     * 创建人ID
     */
    @TableField(value = "create_by")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(value = "cancel_reason")
    private String cancelReason;
    /**
     * 更新人ID
     */
    @TableField(value = "update_by")
    private Long updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}